import axios from "axios";

const request = axios.create({
    // baseURL:'http://127.0.0.1:3000'
    baseURL:'http://101.32.169.227:3000'
})

request.interceptors.request.use(
    config => {
        const token = localStorage.getItem('token')
        if(token) config.headers.token = token
        return config
    },
    error => {
        return console.log(error);
    }
)

export default request